'use strict'
import React from 'react'
import style from './css.css'
import { View } from '../../component'

class Intro extends React.Component {
  static propTypes = {
    label: PropTypes.string,
    images: PropTypes.object
  }
  _renderList () {
    let { images } = this.props
    if (images) {
      images = images.slice()
      return images.map((item, index) => {
        return <img src={item} className={style.dollImage} key={index} />
      })
    }
  }
  render () {
    const { label } = this.props
    return (
      <View className={style.roomBottomBox}>
        <View className={style.roomBottomTitle}>
          <View className={style.roomBottomTitleLine}></View>
          娃娃详情
        </View>
        {this._renderList() }
        <img src={label} className={style.dollImage} />
      </View>
    )
  }
}

export default Intro
